<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <script src="/js/jquery-3.6.0.js"></script>
    <link rel="stylesheet" href="/lib/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/css/ZhiWeiQuanXian/ZhiWeiQuanXian.css">
    <script src="/lib/layui/layui.js" charset="utf-8"></script>

    <!--  <link rel="stylesheet" href="../static/css/ZhiWeiQuanXian/ZhiWeiQuanXian.css">-->
    <!--  <link rel="stylesheet" href="../static/layui-v2.6.8/layui-v2.6.8/layui/css/layui.css">-->
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>

<body>
<table style="background-color: white ;height: 50px;width: 100%">
    <tr>
        <td align="center" >
            <h2>[ 字典管理 ]</h2>
        </td>
        <td  style="margin-right: 10px" width="100" >
            <button class="layui-btn layui-btn-sm layui-btn-warm" id="btnAdd">添加字典</button>
        </td>
    </tr>
</table>



<table id="dictBigClass" class="layui-table" lay-data="{id:'id'}" lay-filter="dictBigClassTable">
    <thead>
    <tr>
        <td lay-data="{field:'id',width:'20%',align:'center'}">ID</td>
        <td lay-data="{field:'name',width:'30%',align:'center'}">名称</td>
        <td lay-data="{field:'op',width:'30%',align:'center'}">操作</td>
    </tr>
    <tr th:each="jt :${dictTop}">
        <td th:text="${jt.getId()}"></td>
        <td th:text="${jt.getName()}"></td>
        <td>
            <button type="button" class="layui-btn layui-btn-xs" lay-event="edit" >子字典</button>
            <button type="button" class="layui-btn layui-btn-xs  layui-btn-danger" lay-event="del">删除</button>
        </td>
    </tr>
    </thead>

</table>

<script type="text/html" id="barDemo">
    <button type="button" class="layui-btn layui-btn-xs" lay-event="edit" >子字典</button>
    <button type="button" class="layui-btn layui-btn-xs  layui-btn-danger" lay-event="del">删除</button>
</script>
<!--弹出层的js-->
<script src="/js/dict.js" charset="utf-8"></script>
</body>

</html>